﻿using System.Runtime.Serialization;

namespace Toybox.NicoSharp.Seiga
{
	partial class Book
	{
		[DataContract]
		public class Recommendation
		{
			[DataMember]
			public bool is_success;

			[DataMember]
			public RecommendedBook[] books;
		}

		[DataContract]
		public class RecommendedBook
		{
			[DataMember]
			public string id;

			[DataMember]
			public string name;

			[DataMember]
			public Author author;

			[DataMember]
			public ThumbnailUrl thumbnail_url;

			[DataMember]
			public string genre;

			[DataMember]
			public bool is_free;

			[DataMember]
			public int price;

			[DataMember]
			public bool has_multiple_prices;

			[DataMember]
			public string channel_id;
		}

		[DataContract]
		public class Author
		{
			[DataMember]
			public string name;

			[DataMember]
			public string type;
		}

		[DataContract]
		public class ThumbnailUrl
		{
			[DataMember]
			public string small;

			[DataMember]
			public string medium;

			[DataMember]
			public string large;
		}
	}
}
